
<cfsavecontent variable="headtext">
<script>
function noServiceFactory()	{
	<cfif NOT IsObject(getProperty("serviceFactory"))>
	alert("In order for this example to work, you must have the service factory enabled in settings and ensure that the appropriate service factory library (ColdSpring/Lightwire) is accessible.");
	<cfelse>
	document.location.href='<cfoutput>#buildUrl("examples","servicefactory")#</cfoutput>';
	</cfif>
	return false;
}		
</script>
</cfsavecontent>
<cfhtmlhead text="#headtext#">




<p>This is a simple test Controller to show how a few things work in the framework.  Once you feel like you have it all down, feel free to remove the /views/test directory and /controllers/Test.cfc.</p>

<ul>
	<li><a href="<cfoutput>#buildUrl("examples","form")#</cfoutput>">Form post</a> with redirect.</li>
	<li><a href="<cfoutput>#buildUrl("examples","viewstacks")#</cfoutput>">View Stack</a> example.</li>
	<li><a href="<cfoutput>#buildUrl("examples","ajax")#</cfoutput>">jQuery Ajax</a> example.</li>
	<li>Just a dump of <a href="<cfoutput>#buildUrl("examples","dump")#</cfoutput>">some properties</a>.</li>
	<li><a href="<cfoutput>#buildUrl("examples","nohandler")#</cfoutput>">This is an example</a> of a using a view without a handler defined in the controller.</li>
	<li>Illustration of using subroutines.  <a href="<cfoutput>#buildUrl("examples","securepage")#</cfoutput>">This handler</a> uses a subroutine that ensures users are logged in before accessing a secure event named "securepage".</li>
	<li><a onclick="noServiceFactory()" href="javascript:void(0)">This handler</a> shows an example of accessing the serviceFactory and dumping a value from a service object that was initially set as a property in /config/mof.settings.ini.cfm.</li>
</ul>